<?php

namespace app\api\logic\article;

use app\common\repository\articleTag\R as TagRRepository;

class ArticleTag
{
    public function __construct(
        TagRRepository $tagRRepository
    )
    {
        $this->tagRRepository = $tagRRepository;
    }

    public function getTags()
    {
        $tags = $this->tagRRepository->getTags([]);
        return ['data' => $tags];
    }
}
